package com.example.udpDemo.socket.design.factory;

import com.example.udpDemo.common.constants.DemoConstant;
import lombok.extern.slf4j.Slf4j;

/**
 * @author wangdachuan
 * @version 1.0
 * @date 2023/3/26 22:21
 **/
@Slf4j
public class Test {

    public static void main(String[] args) {
        ProductFactory factory = new ProductFactory();
        Product productA = factory.createProduct(DemoConstant.STRING_A);
        log.info(productA.getProduceName());
        Product productB = factory.createProduct(DemoConstant.STRING_B);
        log.info(productB.getProduceName());
    }
}
